import java.util.Scanner;

public class MyTest {
    public static void main(String[] args) {
        Monkey monkey=new Monkey();
        Monkey monkey2=new Monkey("ddd","ddsdwe");
    }
}

class Monkey{
    String name;
    String feature;
    public Monkey(){
        this.name="长尾猴";
        this.feature="尾巴长";
        System.out.println("我是使用无参构造产生的猴子");
        System.out.println("名称："+this.name);
        System.out.println("特征："+this.feature);
    }
    public Monkey(String name,String feature){
        this.name=name;
        this.feature=feature;
        System.out.println("我是有参构造");
        System.out.println("名称："+this.name);
        System.out.println("特征："+this.feature);

    }
}

